package com.cloud.cmt.usermanage.service;

import com.cloud.cmt.usermanage.entity.Right;
import com.cloud.cmt.usermanage.entity.RoleGroup;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;

import java.util.List;

/**
 * Created by Administrator on 2017/10/21.
 */
@RepositoryRestResource(path = "right")
public interface RightRepository extends JpaRepository<Right, Long> {

    List<Right> findByUplink(Long uplink);
}
